<?php
// Lay cac thong so cau hinh chung
include "../../app_global.php";
// Lay cac hang so dung chung
include "../../const.php";
// Ket noi vao Database
include "../../connect.php";
// Ket noi vao Database bang ADO
include "../../connect_ado.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
//Ham xslt
include "../../isa-lib/isa-function/class_xslt.php";
// Kiem tra NSD da login hay qua timeout chua
include "../../test_login.php";
//
include "../../onegate_function.php";
// Khoi tao cac bien session de luu quyen thuc hien tren cac modul, function cua NSD hien thoi
include "../../init_session.php";
include "app_local.php";
// Lay cac hang so cua chuc nang nay
include "const.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_header.php";
}else{
	include "../../dsp_modal_dialog_header.php";
}
?>
<script src="../../isa-lib/isa-js/isa_util.js" ></script>
<script src="../answerer-qa/js_answerer.js" ></script><?php
switch($fuseaction) {
	 case "DISPLAY_SINGLE_CREATOR_AF";
	 	include "../cate/qry_all_cate.php";
		include "../agency/qry_all_agency.php";
		include "qry_all_creator_af_cate.php";	
		include "qry_all_creator_af_agency.php";			
		include "qry_single_creator_af.php";
		include "dsp_single_creator_af.php";
		break;
	case "DISPLAY_ALL_CREATOR_AF"; 
		include "qry_all_creator_af.php";	
		include "dsp_all_creator_af.php"; 
		break; 	
	case "DISPLAY_ALL_STAFF"; 
		include "qry_all_creator_af.php";	
		include "dsp_all_staff.php"; 
		break; 	
	 case "UPDATE_CREATOR_AF"; 
		include "act_update_creator_af.php";
		break;		
	 case "ADD_CREATOR_AF"; 
		include "act_add_creator_af.php";
		break;		
	 case "DELETE_CREATOR_AF";
		include "act_delete_creator_af.php"; 
		break;
	 default: 
			include "qry_all_creator_af.php";
			include "dsp_all_creator_af.php"; 
			break; 
}
include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_footer.php";
}else{
	include "../../dsp_modal_dialog_footer.php";
}?>